
/*
 * GET home page.
 */
var url = require("url");
exports.index = function(req, res){

  //var isMobile = req.isMobile;
  res.render('index', { user : req.session.user, isMobile: req.isMobile });
};

exports.freeboard = function(req, res){

    var parts = url.parse(req.url, true);

  res.render('freeboard',{ request: parts.query.request, user : req.session.user,userInfo: req.session.userInfo, isMobile: req.isMobile });
};

exports.message = function(req, res)
{
  res.render('message',{ user : req.session.user,userInfo: req.session.userInfo, isMobile: req.isMobile });
};

exports.login = function(req, res)
{

  res.render('login', { user : req.session.user, isMobile: req.isMobile});
};

exports.test = function(req, res)
{
    res.render('test', { isMobile: req.isMobile});
};